package com.isoft.c2team3service2.util;

public class RedisConstants {
    // 原有常量保留
    public static final String USER_CODE_KEY = "user:code:";
    public static final Long USER_CODE_TTL = 1L;
    public static final String USER_LOGIN_KEY = "user:login:";
    // 修改为与Redis一致的前缀
    public static final String ARTIST_RECENT_ACCESS_TIME = "recent:access:time:";
    public static final String ARTIST_SHOW = "artist:show:";
    public static final String INTERFACE_ARTIST_SEPARATOR = ":";

    // 新增：艺人搜索接口访问记录过期时间（24小时，与其他访问记录保持一致）
    public static final Long ARTIST_SEARCH_ACCESS_TTL = 24 * 60 * 60L; // 单位：秒
    // 新增：搜索接口唯一标识前缀（用于生成Redis键，区分其他接口）
    public static final String SEARCH_INTERFACE_PREFIX = "posts:search-by-artist:";

    //相关艺人的帖子详情
    public static final String ARTIST_RELATED_POST_DETAIL = "artist:related:post:detail:";
    //相关帖子的评论列表
    public static final String POST_COMMENT_LIST = "post:comment:list:";

    //    用户点赞列表
    public static final String USER_LIKE_LIST = "post:liked:";

    public static  final String USER_POST_LIST ="post:user:";
}